package com.intretech.tj.mqtt;

import com.intretech.tj.global.parent.OutLogParent;
import jakarta.enterprise.context.ApplicationScoped;

/**
 * 日志输出
 */
@ApplicationScoped
public class OutLog extends OutLogParent {
    public static final String WSElementStart = "ws子服务启动中";
    public static final String TCPElementStart = "tcp子服务启动中";
    public static final String Connect = "%s成功连接";
    public static final String Close = "%s断开连接";

    public static final String Release = "REL消息释放确认 ID:%s";

    public static final String Received = "REC消息回复确认 ID%s";

    public static final String Acknowledge = "ACK消息回复确认 ID%s";

    public static final String PublishHandler = "收到消息ID:%s 发布者:%s qos:%s 内容:%s";

    public static final String Unsubscribe = "退订主题 退订者:%s 主题:%s";

    public static final String Subscribe = "订阅主题 订阅者:%s 主题:%s";

    public static final String Transmit = "转发消息ID:%s 接收者:%s qos:%s 内容:%s";

    public static final String Publish = "发送消息ID:%s 接收者:%s qos:%s 内容:%s";

    public static final String Retain = "保留消息ID:%s 接收者:%s qos:%s 内容:%s";


    @Override
    protected void setServerName() {
        serverName = "MQTT";
    }
}
